planetj.dataengine.security
Class DEAuthorization

java.lang.Object
  |
  +--planetj.database.Row
        |
        +--planetj.dataengine.security.DEAuthorization
All Implemented Interfaces:
Cloneable, IBatchProcessObject, IBusinessObject, ICSVRow, IDistributedExecutableObject, IFDFObject, IGuarded, INamedCollection, INavigationObject, IRowCreator, IXMLObject, Serializable

public class DEAuthorization
extends Row

Author:
PlanetJ Corp.
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class planetj.database.Row
Row.SpacingRow
 
Field Summary
static String className
           
static String DELETE
           
static String DESCRIPTION
           
static String EXECUTE
           
static String ID
           
static String INSERT
           
static String LIBRARY_NAME
           
static String OWNER_ID
           
static String PERMISSIONS
           
static String SECURED_TYPE
           
static String SECURED_TYPE_ID
           
static String SELECT
           
static String TABLE_NAME
           
static String TYPE
           
static String UPDATE
           
 
Fields inherited from class planetj.database.Row
COPY, MODE_COPY, MODE_DELETE, MODE_INSERT, MODE_READ, MODE_SEARCH, MODE_UNKNOWN, MODE_UPDATE, READ
 
Fields inherited from interface planetj.dataengine.security.IGuarded
TYPE_ID_UNKNOWN, TYPE_NAME_FIELD, TYPE_NAME_SQLOPERATION, TYPE_SECURED_BY_LEVEL, TYPE_SECURED_BY_OPERATION, TYPE_UNSECURED
 
Constructor Summary
DEAuthorization()
           
 
Method Summary
 boolean allowGroup(DEGroup group)
          Specifies the principal for which permissions are granted or denied by this ACL entry.
static void createDEAuthorizationTable(String systemAlias, String libraryName, String tableName)
          Creates the authorization table.
 RowCollection getDEGroups()
           
static RowCollection getDEGroups(String system, int owner, int authorization)
           
 int getId()
          Gets the group ID
 Integer getIdAsInteger()
          Gets the group ID
 int getOwnerId()
          Gets the ID of this user 2 group's owner
 Integer getOwnerIdAsInteger()
          Gets the ID of this user 2 group's owner
 int getType()
           
 Integer getTypeAsInteger()
           
 boolean isMember(DEGroup group)
           
 boolean isSelect()
          Check to see if view is allowed.
 void setId(int value)
          Sets the group ID
 void setId(Integer value)
          Sets the group ID
 void setOwnerId(int value)
          Sets the ID of this application's owner
 void setOwnerId(Integer value)
          Sets the ID of this application's owner
 void setType(int value)
           
 void setType(Integer value)
           
 
Methods inherited from class planetj.database.Row
add, add, addObject, addPropertyChangeListener, addPropertyChangeListener, addRowEventListener, addRowEventListeners, addTable, appendDisplayType, batchProcess, clearFields, clearTables, clearValidationException, clone, cloneRow, commitFieldValues, commitFieldValues, commitFieldValues, concatenateFieldFullLengthValues, concatenateFieldValues, containsField, copy, copyIntoRowFieldsWithCommonFieldNames, copyIntoRowFieldsWithCommonFieldNames, copyIntoRowFieldsWithCommonUsageIds, copyIntoRowFieldsWithGivenFieldNames, copyIntoRowFieldsWithGivenFieldNames, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, createRow, defaultMerge, delete, delete, delete, delete, deleteObject, divide, duplicateKey, equals, equals, equalsInstance, executeDistributedAction, fieldHasPossibleValuesSQLOperation, getAssociation, getAssociation, getAssociationByOperationUsageId, getAssociationOperation, getAttribute, getChildren, getColumnSpan, getCompleteRow, getCompleteRow, getConfigProperty, getCopiedFieldValues, getCSVRow, getCSVRow, getDatabaseRow, getDatabaseRow, getDeleteConfirmation, getDeleteConfirmationMessage, getDisplayValue, getDistributedRequestorURL, getExternalName, getExternalNames, getFDFData, getFDTable, getField, getField, getField, getFieldDefaultValue, getFieldDescriptor, getFieldDescriptor, getFieldDescriptor, getFieldDescriptorsWithUsage, getFieldDescriptorsWithUsageId, getFieldDescriptorWithUsageId, getFieldDisplayValue, getFieldNames, getFields, getFields, getFieldSets, getFieldSQLObject, getFieldsToDisplay, getFieldsToDisplayStrict, getFieldsToDisplayStrict, getFieldStyleClass, getFieldValue, getFieldWithUsageId, getHeaderText, getLibraryName, getMaxFieldLengths, getMaxFieldLengths, getMaxInsertRetries, getMetaDataSystemAlias, getNamed, getNamesOfUpdatedFields, getNavigationKey, getNavigationListKey, getPercentage, getPhysicalFieldNames, getPropertyGroup, getPropertyGroups, getPropertyGroups, getRowCollection, getRowDisplayAttributes, getRowDisplayAttributes, getRowKey, getSecuredTypeId, getSecuredTypeName, getSecurityType, getSQL, getSQLContext, getStaticAttribute, getSum, getSystemAlias, getTable, getTable, getTableName, getTables, getTimestamp, getUpdatedFields, getUserMessageForOperation, getUseWOWLibrary, getValidationExceptions, getValueAsBoolean, getValueAsByte, getValueAsDate, getValueAsDate, getValueAsDouble, getValueAsDouble, getValueAsFloat, getValueAsFullLengthString, getValueAsInt, getValueAsLong, getValueAsNumber, getValueAsNumber, getValueAsShort, getValueAsString, getValueAsString, getValueByUsageId, getValues, getXMLData, getXMLData, getXMLHeaderData, handleDistributed, hasChildRows, hasMultipleStyleClasses, hasPropertyChangeListeners, insert, insert, insert, insert, is, isARow, isARowCollection, isChanged, isChangedRealTime, isChangedSinceLastCheck, isCloneNeeded, isContainsAllFields, isCopyable, isDeletable, isDistinctRow, isDistributed, isEditable, isEmpty, isFieldApplicable, isFieldAuthorizedForEdit, isFieldAuthorizedForRead, isFieldDisplayable, isFieldReadOnly, isFieldRequired, isFieldRequiredOnSearch, isFieldsChanged, isFieldValueNotBlank, isFieldValuesDatabaseDefaults, isGenerateChildRows, isGroupByRow, isGuarded, isHasColumnNames, isInARowCollection, isIncrementorResetAfterMaxInsertRetries, isInitializeDerivedFieldsEnabled, isJoinedRow, isKeyFieldsPresent, isLogicalRow, isMultipleDeleteEnabled, isPhysicalRow, isPropertyChangeEventsEnabled, isReturningFromPossibleValuesSearch, isRowKeyed, isSelectable, isUnionRow, isValidateRequired, isValidationRequiredForAutoPopulate, isViewable, iterator, merge, newField, newField, newField, newField, populate, postCreate, prepareForDetails, prepareFromFieldNames, removeNavigationKey, removePropertyChangeListener, removePropertyChangeListener, removeRowEventListener, removeRowEventListeners, replaceField, replaceFieldValues, rollbackChanges, setAttribute, setDistributed, setDistributedRequestorURL, setDistributedTargetURL, setFieldInitialValue, setFieldValue, setFieldValue, setFieldValue, setFieldValueAsString, setFieldValueAsString, setFieldValuesAsDate, setFieldValuesToDefault, setFieldValuesWithCommonFieldNames, setFieldValuesWithCommonFieldNames, setFieldValuesWithCommonUsageIds, setFieldValueToDefault, setMultipleDeleteEnabled, setNavigationKey, setPropertyChangeEventsEnabled, setPropertyGroups, setReturningFromPossibleValuesSearch, setSavepoint, setSavepoint, setSavepoint, setStaticAttribute, setTables, setTables, setUseWOWLibrary, setValidateRequired, setValues, size, splitAndSetFieldValues, statusChanged, toCSV, toDOC, toDOC, toFDF, toPDF, toPDF, toString, toUpperCase, toXML, transferDataTo, transferDataTo, update, update, update, update, updateObject, validate, validate, validate, validateRowOperation
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LIBRARY_NAME

public static final String LIBRARY_NAME
See Also:
Constant Field Values

TABLE_NAME

public static final String TABLE_NAME
See Also:
Constant Field Values

ID

public static final String ID
See Also:
Constant Field Values

DESCRIPTION

public static final String DESCRIPTION
See Also:
Constant Field Values

OWNER_ID

public static final String OWNER_ID
See Also:
Constant Field Values

TYPE

public static final String TYPE
See Also:
Constant Field Values

SECURED_TYPE

public static final String SECURED_TYPE
See Also:
Constant Field Values

SECURED_TYPE_ID

public static final String SECURED_TYPE_ID
See Also:
Constant Field Values

PERMISSIONS

public static final String PERMISSIONS
See Also:
Constant Field Values

SELECT

public static final String SELECT
See Also:
Constant Field Values

INSERT

public static final String INSERT
See Also:
Constant Field Values

UPDATE

public static final String UPDATE
See Also:
Constant Field Values

DELETE

public static final String DELETE
See Also:
Constant Field Values

EXECUTE

public static final String EXECUTE
See Also:
Constant Field Values

className

public static final String className
Constructor Detail

DEAuthorization

public DEAuthorization()
Method Detail

allowGroup

public boolean allowGroup(DEGroup group)
Specifies the principal for which permissions are granted or denied by this ACL entry. If a principal was already set for this ACL entry, false is returned, otherwise true is returned.

Returns:
true if the principal is set, false if there was already a principal set for this entry.

createDEAuthorizationTable

public static void createDEAuthorizationTable(String systemAlias,
                                              String libraryName,
                                              String tableName)
                                       throws CMException
Creates the authorization table.

CMException

getDEGroups

public RowCollection getDEGroups()
                          throws CMException
CMException

getDEGroups

public static RowCollection getDEGroups(String system,
                                        int owner,
                                        int authorization)
                                 throws CMException
CMException

getId

public int getId()
Gets the group ID


getIdAsInteger

public Integer getIdAsInteger()
Gets the group ID


getOwnerId

public int getOwnerId()
Gets the ID of this user 2 group's owner


getOwnerIdAsInteger

public Integer getOwnerIdAsInteger()
Gets the ID of this user 2 group's owner


getType

public int getType()

getTypeAsInteger

public Integer getTypeAsInteger()

isMember

public boolean isMember(DEGroup group)

isSelect

public boolean isSelect()
Check to see if view is allowed.


setId

public void setId(int value)
           throws CMException
Sets the group ID

CMException

setId

public void setId(Integer value)
           throws CMException
Sets the group ID

CMException

setOwnerId

public void setOwnerId(int value)
                throws CMException
Sets the ID of this application's owner

CMException

setOwnerId

public void setOwnerId(Integer value)
                throws CMException
Sets the ID of this application's owner

CMException

setType

public void setType(int value)
             throws CMException
CMException

setType

public void setType(Integer value)
             throws CMException
CMException