Class AclSerializationManager
- java.lang.Object
-
- lumis.util.security.acl.serialization.AclSerializationManager
-
- All Implemented Interfaces:
IConfigPersister
,IAclSerializationManager
- Direct Known Subclasses:
ChannelAclSerializationManager
,GroupAclSerializationManager
,PageAclSerializationManager
,ServiceInstanceAclSerializationManager
public abstract class AclSerializationManager extends java.lang.Object implements IAclSerializationManager
Manager for Acl serialization- Since:
- 4.0.7
- Version:
- $Revision$ $Date$
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
AclSerializationManager.AclGlobalPrincipalEntriesRemovalResult
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
configAlias
protected java.util.List<ConfigForeignKey>
entryForeignKeys
protected java.util.List<ConfigForeignKey>
foreignKeys
protected java.lang.String[]
primaryKeyFieldNames
-
Constructor Summary
Constructors Constructor Description AclSerializationManager()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
analyzeExternalDependencies(SerializationContext serializationContext, ISerializationMessageConfigNodeBuilder serializationMessageConfigNodeBuilder, AccessControlList dependentAccessControlList)
protected AccessControlListSerializableConfig
createSerializableConfig(SerializationContext serializationContext, AccessControlList accessControlList, AccessControlListSerializableConfig.AclType aclType, java.lang.String objectId)
void
deserialize(DeserializationContext deserializationContext, AccessControlListSerializableConfig accessControlListSerializableConfig)
Deserialize an access control list.AccessControlList
deserializeConfig(DeserializationContext deserializationContext, java.lang.String accessControlListId)
Deserialize aAccessControlList
object.protected abstract IAclManager
getAclManager()
protected java.lang.String
getConfigPath(BaseSerializationContext deserializationContext, java.lang.String configId)
Get the full path for the serialization file.boolean
persistConfig(DeserializationContext deserializationContext, java.lang.Object config, boolean firstPersistence)
Performs a config persistance (add or update) operationabstract AccessControlListSerializableConfig
serialize(SerializationContext serializationContext, java.lang.String securableId)
Serialize an access control list.void
setupSerializationContext(BaseSerializationContext serializationContext)
Set up a serialization context, defining settings such as class aliases, field aliases, transient fields, omitted collections etc.
-
-
-
Field Detail
-
primaryKeyFieldNames
protected final java.lang.String[] primaryKeyFieldNames
-
foreignKeys
protected final java.util.List<ConfigForeignKey> foreignKeys
-
entryForeignKeys
protected final java.util.List<ConfigForeignKey> entryForeignKeys
-
configAlias
protected final java.lang.String configAlias
- See Also:
- Constant Field Values
-
-
Method Detail
-
deserialize
public void deserialize(DeserializationContext deserializationContext, AccessControlListSerializableConfig accessControlListSerializableConfig) throws PortalException
Description copied from interface:IAclSerializationManager
Deserialize an access control list.- Specified by:
deserialize
in interfaceIAclSerializationManager
- Throws:
PortalException
-
deserializeConfig
public AccessControlList deserializeConfig(DeserializationContext deserializationContext, java.lang.String accessControlListId) throws SerializationException
Description copied from interface:IAclSerializationManager
Deserialize aAccessControlList
object.- Specified by:
deserializeConfig
in interfaceIAclSerializationManager
- Returns:
- Throws:
SerializationException
-
persistConfig
public boolean persistConfig(DeserializationContext deserializationContext, java.lang.Object config, boolean firstPersistence) throws PortalException
Description copied from interface:IConfigPersister
Performs a config persistance (add or update) operation- Specified by:
persistConfig
in interfaceIConfigPersister
- Returns:
- Throws:
PortalException
-
getAclManager
protected abstract IAclManager getAclManager()
-
serialize
public abstract AccessControlListSerializableConfig serialize(SerializationContext serializationContext, java.lang.String securableId) throws PortalException
Description copied from interface:IAclSerializationManager
Serialize an access control list.- Specified by:
serialize
in interfaceIAclSerializationManager
- Returns:
- Throws:
PortalException
-
createSerializableConfig
protected AccessControlListSerializableConfig createSerializableConfig(SerializationContext serializationContext, AccessControlList accessControlList, AccessControlListSerializableConfig.AclType aclType, java.lang.String objectId) throws PortalException
- Throws:
PortalException
-
analyzeExternalDependencies
protected void analyzeExternalDependencies(SerializationContext serializationContext, ISerializationMessageConfigNodeBuilder serializationMessageConfigNodeBuilder, AccessControlList dependentAccessControlList) throws PortalException
- Throws:
PortalException
-
setupSerializationContext
public void setupSerializationContext(BaseSerializationContext serializationContext)
Description copied from interface:IAclSerializationManager
Set up a serialization context, defining settings such as class aliases, field aliases, transient fields, omitted collections etc.- Specified by:
setupSerializationContext
in interfaceIAclSerializationManager
-
getConfigPath
protected java.lang.String getConfigPath(BaseSerializationContext deserializationContext, java.lang.String configId)
Get the full path for the serialization file.- Parameters:
deserializationContext
-configId
-- Returns:
-
-