|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.slamd.db.JobFolder
public class JobFolder
This class defines a structure for storing information about a job folder. This includes the name of the folder, the jobs and optimizing jobs that it contains, the parent and child folders, and the permissions associated with it.
| Field Summary | |
|---|---|
static java.lang.String |
ELEMENT_CHILDREN
The name of the encoded element that holds the names of the child folders. |
static java.lang.String |
ELEMENT_DESCRIPTION
The name of the encoded element that holds the description for this folder. |
static java.lang.String |
ELEMENT_DISPLAY_IN_READ_ONLY
The name of the encoded element that indicates whether this folder should be visible in restricted read-only mode. |
static java.lang.String |
ELEMENT_FILE_NAMES
The name of the encoded element that holds the names of the uploaded files. |
static java.lang.String |
ELEMENT_IS_VIRTUAL
The name of the encoded element that indicates whether this is a virtual folder. |
static java.lang.String |
ELEMENT_JOB_IDS
The name of the encoded element that holds the job IDs. |
static java.lang.String |
ELEMENT_NAME
The name of the encoded element that holds the name of this job folder. |
static java.lang.String |
ELEMENT_OPTIMIZING_JOB_IDS
The name of the encoded element that holds the optimizing job IDs. |
static java.lang.String |
ELEMENT_PARENT
The name of the encoded element that holds the name of the parent folder. |
static java.lang.String |
ELEMENT_PERMISSIONS
The name of the encoded element that holds the permissions. |
| Constructor Summary | |
|---|---|
JobFolder(java.lang.String folderName,
boolean displayInReadOnly,
boolean isVirtual,
java.lang.String parentName,
java.lang.String[] childNames,
java.lang.String description,
java.lang.String[] jobIDs,
java.lang.String[] optimizingJobIDs,
java.lang.String[] fileNames,
SLAMDPermission[] permissions)
Creates a new job folder with the provided information. |
|
| Method Summary | |
|---|---|
void |
addChildName(java.lang.String childName)
Adds the specified folder as a child of this folder. |
void |
addFileName(java.lang.String fileName)
Adds the specified file name to the set of uploaded files for this job folder. |
void |
addJobID(java.lang.String jobID)
Adds the provided job ID to the set of jobs associated with this folder. |
void |
addOptimizingJobID(java.lang.String optimizingJobID)
Adds the provided optimizing job ID to the set of optimizing jobs associated with this folder. |
boolean |
containsChildName(java.lang.String childName)
Indicates whether this job folder contains a child folder with the specified name. |
boolean |
containsFileName(java.lang.String fileName)
Indicates whether this job folder contains an uploaded file with the specified name. |
boolean |
containsJobID(java.lang.String jobID)
Indicates whether this job folder contains a job with the specified ID. |
boolean |
containsOptimizingJobID(java.lang.String optimizingJobID)
Indicates whether this job folder contains an optimizing job with the specified ID. |
static JobFolder |
decode(byte[] encodedFolder)
Decodes the provided byte array as a job folder. |
boolean |
displayInReadOnlyMode()
Indicates whether this folder should be visible in restricted read-only mode. |
byte[] |
encode()
Encodes the information in this job folder to a byte array. |
java.lang.String[] |
getChildNames()
Retrieves the names of the job folders that are children of this folder. |
java.lang.String |
getDescription()
Retrieves the description for this job folder. |
java.lang.String[] |
getFileNames()
Retrieves the names of the uploaded files associated with this job folder. |
java.lang.String |
getFolderName()
Retrieves the name of this job folder. |
java.lang.String[] |
getJobIDs()
Retrieves the job IDs of all jobs associated with this folder. |
java.lang.String[] |
getOptimizingJobIDs()
Retrieves the optimizing job IDs of all optimizing jobs associated with this folder. |
java.lang.String |
getParentName()
Retrieves the name of the job folder that is the parent of this job folder. |
SLAMDPermission[] |
getPermissions()
Retrieves the set of permissions associated with this job folder. |
boolean |
isVirtual()
Indicates whether this is a virtual job folder. |
void |
removeChildName(java.lang.String childName)
Removes the specified folder as a child of this folder. |
void |
removeFileName(java.lang.String fileName)
Removes the specified file name from the set of uploaded files for this job folder. |
void |
removeJobID(java.lang.String jobID)
Removes the provided job ID from the set of jobs associated with this folder. |
void |
removeOptimizingJobID(java.lang.String optimizingJobID)
Removes the provided optimizing job ID from the set of optimizing jobs associated with this folder. |
void |
removePermission(java.lang.String permissionName)
Removes the permission with the specified name from this job folder. |
void |
setChildNames(java.lang.String[] childNames)
Specifies the names of the job folders that are children of this folder. |
void |
setDescription(java.lang.String description)
Specifies the description for this job folder. |
void |
setDisplayInReadOnlyMode(boolean displayInReadOnly)
Specifies whether this folder should be visible in restricted read-only mode. |
void |
setFileNames(java.lang.String[] fileNames)
Specifies the names of the uploaded files associated with this job folder. |
void |
setJobIDs(java.lang.String[] jobIDs)
Specifies the job IDs of all jobs associated with this folder. |
void |
setOptimzizingJobIDs(java.lang.String[] optimizingJobIDs)
Specifies the optimizing job IDs of all optimizing jobs associated with this folder. |
void |
setPermission(SLAMDPermission permission)
Sets the provided permission for this group. |
void |
setPermissions(SLAMDPermission[] permissions)
Specifies the set of permissions to use for this folder. |
boolean |
userHasPermission(SLAMDUser user,
java.lang.String permissionName)
Determines whether the provided user has the specified permission for this job folder. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ELEMENT_NAME
public static final java.lang.String ELEMENT_DISPLAY_IN_READ_ONLY
public static final java.lang.String ELEMENT_IS_VIRTUAL
public static final java.lang.String ELEMENT_PARENT
public static final java.lang.String ELEMENT_CHILDREN
public static final java.lang.String ELEMENT_DESCRIPTION
public static final java.lang.String ELEMENT_JOB_IDS
public static final java.lang.String ELEMENT_OPTIMIZING_JOB_IDS
public static final java.lang.String ELEMENT_FILE_NAMES
public static final java.lang.String ELEMENT_PERMISSIONS
| Constructor Detail |
|---|
public JobFolder(java.lang.String folderName,
boolean displayInReadOnly,
boolean isVirtual,
java.lang.String parentName,
java.lang.String[] childNames,
java.lang.String description,
java.lang.String[] jobIDs,
java.lang.String[] optimizingJobIDs,
java.lang.String[] fileNames,
SLAMDPermission[] permissions)
folderName - The name of this job folder.displayInReadOnly - Indicates whether the contents of the folder
should be displayed in restricted read-only
mode.isVirtual - Indicates whether this is a virtual job folder.parentName - The name of the folder that is the parent of
this job folder.childNames - The names of the folders that are children of
this job folder.description - The description for this job folder.jobIDs - The job IDs of the jobs stored in this folder.optimizingJobIDs - The job IDs of the optimizing jobs stored in
this folder.fileNames - The names of the uploaded files associated with
this folder.permissions - The set of permissions that have been granted
for this folder.| Method Detail |
|---|
public java.lang.String getFolderName()
public boolean displayInReadOnlyMode()
true if this folder should be visible in restricted
read-only mode, or false if not.public void setDisplayInReadOnlyMode(boolean displayInReadOnly)
displayInReadOnly - Indicates whether this folder should be visible
in restricted read-only mode.public boolean isVirtual()
true if this is a virtual job folder, or
false if it is a real job folder.public java.lang.String getParentName()
null if it is a
top-level folder.public java.lang.String[] getChildNames()
public boolean containsChildName(java.lang.String childName)
childName - The name of the child folder for which to make the
determination.
true if this job folder contains a child folder with
the specified name, or false if not.public void setChildNames(java.lang.String[] childNames)
childNames - The names of the job folders that are children of this
folder.public void addChildName(java.lang.String childName)
childName - The name of the job folder to add as a child of this
folder.public void removeChildName(java.lang.String childName)
childName - The name of the job folder to remove from the set of
children for this folder.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - The description for this job folder.public java.lang.String[] getJobIDs()
public boolean containsJobID(java.lang.String jobID)
jobID - The job ID for which to make the determination.
true if this job folder contains a job with the
specified job ID, or false if not.public void setJobIDs(java.lang.String[] jobIDs)
jobIDs - The job IDs of all jobs associated with this folder.public void addJobID(java.lang.String jobID)
jobID - The job ID to add to the set of jobs associated with this
folder.public void removeJobID(java.lang.String jobID)
jobID - The job ID to remove from the set of jobs associated with
this folder.public java.lang.String[] getOptimizingJobIDs()
public boolean containsOptimizingJobID(java.lang.String optimizingJobID)
optimizingJobID - The optimizing job ID for which to make the
determination.
true if this job folder contains an optimizing job
with the specified ID, or false if not.public void setOptimzizingJobIDs(java.lang.String[] optimizingJobIDs)
optimizingJobIDs - The optimizing job IDs of all optimizing jobs
associated with this folder.public void addOptimizingJobID(java.lang.String optimizingJobID)
optimizingJobID - The optimizing job ID to add to the set of
optimizing jobs associated with this folder.public void removeOptimizingJobID(java.lang.String optimizingJobID)
optimizingJobID - The optimizing job ID to remove from the set of
optimizing jobs associated with this folder.public java.lang.String[] getFileNames()
public boolean containsFileName(java.lang.String fileName)
fileName - The file name for which to make the determination.
true if this job folder contains an uploaded file
with the specified name, or false if it does not.public void setFileNames(java.lang.String[] fileNames)
fileNames - The names of the uploaded files associated with this job
folder.public void addFileName(java.lang.String fileName)
fileName - The name of the file to add to the uploaded files for
this job folder.public void removeFileName(java.lang.String fileName)
fileName - The name of the file to remove from the set of uploaded
files for this job folder.public SLAMDPermission[] getPermissions()
public boolean userHasPermission(SLAMDUser user,
java.lang.String permissionName)
user - The user for which to make the determination.permissionName - The name of the permission to check for the
provided user.
true if the user has the specified permission or
false if not.public void setPermissions(SLAMDPermission[] permissions)
permissions - The set of permissions to use for this folder.public void setPermission(SLAMDPermission permission)
permission - The permission to set for this folder.public void removePermission(java.lang.String permissionName)
permissionName - The name of the permission to remove from this
folder.public byte[] encode()
public static JobFolder decode(byte[] encodedFolder)
throws DecodeException
encodedFolder - The byte array containing the encoded folder data.
DecodeException - If a problem occurs while attempting to decode
the job folder.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||