ARoad0.gBaseInterface
Interface Copyable

All Superinterfaces:
BaseObject
All Known Subinterfaces:
Actor, ActorMySQL, ActorUbuntu, BasesSetMySQL, Basic, Directory, DirectoryMySQL, DirectoryUbuntu, EligibleParty, ExecutableUbuntu, GroupID, GroupIDMember, GroupIDMySQL, ImmutableActor, ImmutableBasic, ImmutableDirectory, ImmutableEligibleParty, ImmutableGroupID, ImmutableGroupIDMember, ImmutableResource, ImmutableUserID, ProxyMySQL, Resource, ResourceMySQL, ResourceUbuntu, RoleMySQL, UserID, UserIDMySQL, UserIDUbuntu
All Known Implementing Classes:
ActorImpl, ActorMySQLImpl, ActorUbuntuImpl, BasesSetMySQLImpl, BasicImpl, DirectoryImpl, DirectoryMySQLImpl, DirectoryUbuntuImpl, EligiblePartyImpl, ExecutableUbuntuImpl, GroupIDImpl, GroupIDMemberImpl, GroupIDMySQLImpl, ProxyMySQLImpl, ResourceImpl, ResourceMySQLImpl, ResourceUbuntuImpl, RoleMySQLImpl, UserIDImpl, UserIDMySQLImpl, UserIDUbuntuImpl

public interface Copyable
extends BaseObject

This interface is responsible to mark an acs object following the BeanInfo class parameters of the object class for the copy operation.


Method Summary
 java.lang.Object copy(ImmutableName _name, ACS _acs, Directory _parent, java.lang.Boolean _toRegisterInManager)
          This method provides a copy of the instance with another name.
 
Methods inherited from interface ARoad0.gBaseInterface.BaseObject
equals, getFullName, getName, getNickName, hashCode
 

Method Detail

copy

java.lang.Object copy(ImmutableName _name,
                      ACS _acs,
                      Directory _parent,
                      java.lang.Boolean _toRegisterInManager)
                      throws CreateError
This method provides a copy of the instance with another name. Each internal variable that is an external object reference have a shallow copy or a deep copy.

Parameters:
_name - copy name. Usually creates as an extension of _parent name.
_acs - main ACS of the copy to create. May not be the ACS of this instance.
_parent - DirectoryImpl which belongs to _acs and will have the copy. May be null for EligibleParty. Must be null for some implementations.
_toRegisterInManager - false if this method must not register the instance in the ACS.
Returns:
a copy of the object, in the same class.
Throws:
CreateError - of the constructor with the same parameters, or if _parent ACS is not _acs, or addAclEntry() exceptions.