Java Doc for BaseAliasService.java in  » ERP-CRM-Financial » sakai » org » sakaiproject » alias » impl » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ERP CRM Financial » sakai » org.sakaiproject.alias.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.sakaiproject.alias.impl.BaseAliasService

All known Subclasses:   org.sakaiproject.alias.impl.DbAliasService,
BaseAliasService
abstract public class BaseAliasService implements AliasService,StorageUser(Code)

BaseAliasService is ...


Inner Class :public class BaseAliasEdit implements AliasEdit,SessionBindingListener
Inner Class :protected interface Storage

Field Summary
protected  intm_cacheCleanerSeconds
     The # seconds to cache gets.
protected  intm_cacheSeconds
     The # seconds to cache gets.
protected  Cachem_callCache
     A cache of calls to the service and the results.
protected  Stringm_relativeAccessPoint
     The initial portion of a relative access point URL.
protected  Storagem_storage
     Storage manager for this service.


Method Summary
public  AliasEditadd(String id)
     Add a new alias.
protected  voidaddLiveProperties(ResourcePropertiesEdit props)
     Create the live properties for the user.
protected  voidaddLiveUpdateProperties(ResourcePropertiesEdit props)
     Update the live properties for a user for when modified.
protected  StringaliasId(String ref)
     Access the alias id extracted from a alias reference.
Parameters:
  ref - The alias reference string.
public  StringaliasReference(String id)
     Access the internal reference which can be used to access the resource from within the system.
Parameters:
  id - The alias id string.
public  booleanallowAdd()
     Check to see if the current user can add an alias.
public  booleanallowEdit(String id)
     Check to see if the current user can edit this alias.
Parameters:
  id - The alias id string.
public  booleanallowRemoveAlias(String alias)
     Check to see if the current user can remove this alias.
Parameters:
  alias - The alias.
public  booleanallowRemoveTargetAliases(String target)
     Check to see if the current user can remove these aliasese for this target resource reference.
Parameters:
  target - The target resource reference string.
public  booleanallowSetAlias(String alias, String target)
     Check if the current user has permission to set this alias.
Parameters:
  alias - The alias.
Parameters:
  target - The resource reference string alias target.
public  Stringarchive(String siteId, Document doc, Stack stack, String archivePath, List attachments)
    
public  voidcancel(AliasEdit edit)
     Cancel the changes made to a AliasEdit object, and release the lock.
public  voidcommit(AliasEdit edit)
     Commit the changes made to a AliasEdit object, and release the lock.
public  intcountAliases()
    
public  intcountSearchAliases(String criteria)
    
public  voiddestroy()
     Returns to uninitialized state.
public  AliasEditedit(String id)
     Get a locked alias object for editing.
abstract protected  EntityManagerentityManager()
    
abstract protected  EventTrackingServiceeventTrackingService()
    
abstract protected  FunctionManagerfunctionManager()
    
protected  StringgetAccessPoint(boolean relative)
     Access the partial URL that forms the root of resource URLs.
Parameters:
  relative - if true, form within the access path only (i.e.
public  ListgetAliases(String target)
     Find all the aliases defined for this target.
Parameters:
  target - The target resource reference string.
public  ListgetAliases(String target, int first, int last)
     Find all the aliases defined for this target, within the record range given (sorted by id).
Parameters:
  target - The target resource reference string.
Parameters:
  first - The first record position to return.
Parameters:
  last - The last record position to return.
public  ListgetAliases(int first, int last)
     Find all the aliases within the record range given (sorted by id).
Parameters:
  first - The first record position to return.
Parameters:
  last - The last record position to return.
public  TimegetDate(Entity r)
     Access the resource date.
Parameters:
  r - The resource.
public  EntitygetEntity(Reference ref)
    
public  CollectiongetEntityAuthzGroups(Reference ref, String userId)
    
public  StringgetEntityDescription(Reference ref)
    
public  ResourcePropertiesgetEntityResourceProperties(Reference ref)
    
public  StringgetEntityUrl(Reference ref)
    
public  HttpAccessgetHttpAccess()
    
public  StringgetLabel()
    
public  StringgetOwnerId(Entity r)
     Access the resource owner user id.
Parameters:
  r - The resource.
public  StringgetTarget(String alias)
     Find the target resource reference string associated with this alias.
Parameters:
  alias - The alias.
public  voidinit()
     Final initialization, once all dependencies are set.
public  booleanisDraft(Entity r)
     Check if this resource is in draft mode.
Parameters:
  r - The resource.
abstract protected  MemoryServicememoryService()
    
public  Stringmerge(String siteId, Element root, String archivePath, String fromSiteId, Map attachmentNames, Map userIdTrans, Set userListAllowImport)
    
public  EntitynewContainer(String ref)
     Construct a new continer given just an id.
Parameters:
  id - The id for the new object.
public  EntitynewContainer(Element element)
     Construct a new container resource, from an XML element.
Parameters:
  element - The XML.
public  EntitynewContainer(Entity other)
     Construct a new container resource, as a copy of another
Parameters:
  other - The other contianer to copy.
public  EditnewContainerEdit(String ref)
     Construct a new continer given just an id.
Parameters:
  id - The id for the new object.
public  EditnewContainerEdit(Element element)
     Construct a new container resource, from an XML element.
Parameters:
  element - The XML.
public  EditnewContainerEdit(Entity other)
     Construct a new container resource, as a copy of another
Parameters:
  other - The other contianer to copy.
public  EntitynewResource(Entity container, String id, Object[] others)
     Construct a new resource given just an id.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  id - The id for the new object.
Parameters:
  others - (options) array of objects to load into the Resource's fields.
public  EntitynewResource(Entity container, Element element)
     Construct a new resource, from an XML element.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  element - The XML.
public  EntitynewResource(Entity container, Entity other)
     Construct a new resource from another resource of the same type.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  other - The other resource.
public  EditnewResourceEdit(Entity container, String id, Object[] others)
     Construct a new resource given just an id.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  id - The id for the new object.
Parameters:
  others - (options) array of objects to load into the Resource's fields.
public  EditnewResourceEdit(Entity container, Element element)
     Construct a new resource, from an XML element.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  element - The XML.
public  EditnewResourceEdit(Entity container, Entity other)
     Construct a new resource from another resource of the same type.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  other - The other resource.
abstract protected  StoragenewStorage()
     Construct storage for this service.
public  booleanparseEntityReference(String reference, Reference ref)
    
public  voidremove(AliasEdit edit)
     Remove this alias information - it must be a user with a lock from edit().
public  voidremoveAlias(String alias)
     Remove an alias.
public  voidremoveTargetAliases(String target)
     Remove all aliases for this target resource reference, if any.
public  ListsearchAliases(String criteria, int first, int last)
    
abstract protected  SecurityServicesecurityService()
    
abstract protected  ServerConfigurationServiceserverConfigurationService()
    
abstract protected  SessionManagersessionManager()
    
public  voidsetAlias(String alias, String target)
    
public  voidsetCacheCleanerMinutes(String time)
     Set the # minutes between cache cleanings.
Parameters:
  time - The # minutes between cache cleanings.
public  voidsetCacheMinutes(String time)
     Set the # minutes to cache a get.
abstract protected  SiteServicesiteService()
    
public  Object[]storageFields(Entity r)
     Collect the fields that need to be stored outside the XML (for the resource).
abstract protected  TimeServicetimeService()
    
protected  voidunlock(String lock, String resource)
     Check security permission.
protected  booleanunlockCheck(String lock, String resource)
     Check security permission.
Parameters:
  lock - The lock id string.
Parameters:
  resource - The resource reference string, or null if no resource is involved.
protected  booleanunlockTargetCheck(String target)
     Check security permission, target modify based.
Parameters:
  target - The target resource reference string.
abstract protected  UserDirectoryServiceuserDirectoryService()
    
public  booleanwillArchiveMerge()
    

Field Detail
m_cacheCleanerSeconds
protected int m_cacheCleanerSeconds(Code)
The # seconds to cache gets. 0 disables the cache.



m_cacheSeconds
protected int m_cacheSeconds(Code)
The # seconds to cache gets. 0 disables the cache.



m_callCache
protected Cache m_callCache(Code)
A cache of calls to the service and the results.



m_relativeAccessPoint
protected String m_relativeAccessPoint(Code)
The initial portion of a relative access point URL.



m_storage
protected Storage m_storage(Code)
Storage manager for this service.





Method Detail
add
public AliasEdit add(String id) throws IdInvalidException, IdUsedException, PermissionException(Code)
Add a new alias. Must commit() to make official, or cancel() when done!
Parameters:
  id - The alias id. A locked AliasEdit object (reserving the id).
exception:
  IdInvalidException - if the alias id is invalid.
exception:
  IdUsedException - if the alias id is already used.
exception:
  PermissionException - if the current user does not have permission to add an alias.



addLiveProperties
protected void addLiveProperties(ResourcePropertiesEdit props)(Code)
Create the live properties for the user.



addLiveUpdateProperties
protected void addLiveUpdateProperties(ResourcePropertiesEdit props)(Code)
Update the live properties for a user for when modified.



aliasId
protected String aliasId(String ref)(Code)
Access the alias id extracted from a alias reference.
Parameters:
  ref - The alias reference string. The the alias id extracted from a alias reference.



aliasReference
public String aliasReference(String id)(Code)
Access the internal reference which can be used to access the resource from within the system.
Parameters:
  id - The alias id string. The the internal reference which can be used to access the resource from within the system.



allowAdd
public boolean allowAdd()(Code)
Check to see if the current user can add an alias. true if the current user can add an alias, false if not.



allowEdit
public boolean allowEdit(String id)(Code)
Check to see if the current user can edit this alias.
Parameters:
  id - The alias id string. true if the current user can edit this alias, false if not.



allowRemoveAlias
public boolean allowRemoveAlias(String alias)(Code)
Check to see if the current user can remove this alias.
Parameters:
  alias - The alias. true if the current user can remove this alias, false if not.



allowRemoveTargetAliases
public boolean allowRemoveTargetAliases(String target)(Code)
Check to see if the current user can remove these aliasese for this target resource reference.
Parameters:
  target - The target resource reference string. true if the current user can remove these aliasese for this target resource reference, false if not.



allowSetAlias
public boolean allowSetAlias(String alias, String target)(Code)
Check if the current user has permission to set this alias.
Parameters:
  alias - The alias.
Parameters:
  target - The resource reference string alias target. true if the current user has permission to set this alias, false if not.



archive
public String archive(String siteId, Document doc, Stack stack, String archivePath, List attachments)(Code)



cancel
public void cancel(AliasEdit edit)(Code)
Cancel the changes made to a AliasEdit object, and release the lock. The AliasEdit is disabled, and not to be used after this call.
Parameters:
  user - The AliasEdit object to commit.



commit
public void commit(AliasEdit edit)(Code)
Commit the changes made to a AliasEdit object, and release the lock. The AliasEdit is disabled, and not to be used after this call.
Parameters:
  user - The AliasEdit object to commit.



countAliases
public int countAliases()(Code)



countSearchAliases
public int countSearchAliases(String criteria)(Code)



destroy
public void destroy()(Code)
Returns to uninitialized state.



edit
public AliasEdit edit(String id) throws IdUnusedException, PermissionException, InUseException(Code)
Get a locked alias object for editing. Must commit() to make official, or cancel() (or remove()) when done!
Parameters:
  id - The alias id string. An AliasEdit object for editing.
exception:
  IdUnusedException - if not found.
exception:
  PermissionException - if the current user does not have permission to mess with this alias.
exception:
  InUseException - if the Alias object is locked by someone else.



entityManager
abstract protected EntityManager entityManager()(Code)
the EntityManager collaborator.



eventTrackingService
abstract protected EventTrackingService eventTrackingService()(Code)
the EventTrackingService collaborator.



functionManager
abstract protected FunctionManager functionManager()(Code)
the FunctionManager collaborator.



getAccessPoint
protected String getAccessPoint(boolean relative)(Code)
Access the partial URL that forms the root of resource URLs.
Parameters:
  relative - if true, form within the access path only (i.e. starting with /content) the partial URL that forms the root of resource URLs.



getAliases
public List getAliases(String target)(Code)
Find all the aliases defined for this target.
Parameters:
  target - The target resource reference string. A list (Alias) of all the aliases defined for this target.



getAliases
public List getAliases(String target, int first, int last)(Code)
Find all the aliases defined for this target, within the record range given (sorted by id).
Parameters:
  target - The target resource reference string.
Parameters:
  first - The first record position to return.
Parameters:
  last - The last record position to return. A list (Alias) of all the aliases defined for this target, within the record range given (sorted by id).



getAliases
public List getAliases(int first, int last)(Code)
Find all the aliases within the record range given (sorted by id).
Parameters:
  first - The first record position to return.
Parameters:
  last - The last record position to return. A list (Alias) of all the aliases within the record range given (sorted by id).



getDate
public Time getDate(Entity r)(Code)
Access the resource date.
Parameters:
  r - The resource. The resource date.



getEntity
public Entity getEntity(Reference ref)(Code)



getEntityAuthzGroups
public Collection getEntityAuthzGroups(Reference ref, String userId)(Code)



getEntityDescription
public String getEntityDescription(Reference ref)(Code)



getEntityResourceProperties
public ResourceProperties getEntityResourceProperties(Reference ref)(Code)



getEntityUrl
public String getEntityUrl(Reference ref)(Code)



getHttpAccess
public HttpAccess getHttpAccess()(Code)



getLabel
public String getLabel()(Code)



getOwnerId
public String getOwnerId(Entity r)(Code)
Access the resource owner user id.
Parameters:
  r - The resource. The resource owner user id.



getTarget
public String getTarget(String alias) throws IdUnusedException(Code)
Find the target resource reference string associated with this alias.
Parameters:
  alias - The alias. The target resource reference string associated with this alias.
throws:
  IdUnusedException - if the alias is not defined.



init
public void init()(Code)
Final initialization, once all dependencies are set.



isDraft
public boolean isDraft(Entity r)(Code)
Check if this resource is in draft mode.
Parameters:
  r - The resource. true if the resource is in draft mode, false if not.



memoryService
abstract protected MemoryService memoryService()(Code)
the MemoryService collaborator.



merge
public String merge(String siteId, Element root, String archivePath, String fromSiteId, Map attachmentNames, Map userIdTrans, Set userListAllowImport)(Code)



newContainer
public Entity newContainer(String ref)(Code)
Construct a new continer given just an id.
Parameters:
  id - The id for the new object. The new containe Resource.



newContainer
public Entity newContainer(Element element)(Code)
Construct a new container resource, from an XML element.
Parameters:
  element - The XML. The new container resource.



newContainer
public Entity newContainer(Entity other)(Code)
Construct a new container resource, as a copy of another
Parameters:
  other - The other contianer to copy. The new container resource.



newContainerEdit
public Edit newContainerEdit(String ref)(Code)
Construct a new continer given just an id.
Parameters:
  id - The id for the new object. The new containe Resource.



newContainerEdit
public Edit newContainerEdit(Element element)(Code)
Construct a new container resource, from an XML element.
Parameters:
  element - The XML. The new container resource.



newContainerEdit
public Edit newContainerEdit(Entity other)(Code)
Construct a new container resource, as a copy of another
Parameters:
  other - The other contianer to copy. The new container resource.



newResource
public Entity newResource(Entity container, String id, Object[] others)(Code)
Construct a new resource given just an id.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  id - The id for the new object.
Parameters:
  others - (options) array of objects to load into the Resource's fields. The new resource.



newResource
public Entity newResource(Entity container, Element element)(Code)
Construct a new resource, from an XML element.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  element - The XML. The new resource from the XML.



newResource
public Entity newResource(Entity container, Entity other)(Code)
Construct a new resource from another resource of the same type.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  other - The other resource. The new resource as a copy of the other.



newResourceEdit
public Edit newResourceEdit(Entity container, String id, Object[] others)(Code)
Construct a new resource given just an id.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  id - The id for the new object.
Parameters:
  others - (options) array of objects to load into the Resource's fields. The new resource.



newResourceEdit
public Edit newResourceEdit(Entity container, Element element)(Code)
Construct a new resource, from an XML element.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  element - The XML. The new resource from the XML.



newResourceEdit
public Edit newResourceEdit(Entity container, Entity other)(Code)
Construct a new resource from another resource of the same type.
Parameters:
  container - The Resource that is the container for the new resource (may be null).
Parameters:
  other - The other resource. The new resource as a copy of the other.



newStorage
abstract protected Storage newStorage()(Code)
Construct storage for this service.



parseEntityReference
public boolean parseEntityReference(String reference, Reference ref)(Code)



remove
public void remove(AliasEdit edit) throws PermissionException(Code)
Remove this alias information - it must be a user with a lock from edit(). The AliasEdit is disabled, and not to be used after this call.
Parameters:
  edit - The locked AliasEdit object to remove.
exception:
  PermissionException - if the current user does not have permission to remove this alias.



removeAlias
public void removeAlias(String alias) throws IdUnusedException, PermissionException, InUseException(Code)
Remove an alias.
Parameters:
  alias - The alias.
exception:
  IdUnusedException - if not found.
exception:
  PermissionException - if the current user does not have permission to remove this alias.
exception:
  InUseException - if the Alias object is locked by someone else.



removeTargetAliases
public void removeTargetAliases(String target) throws PermissionException(Code)
Remove all aliases for this target resource reference, if any.
Parameters:
  target - The target resource reference string.
throws:
  PermissionException - if the current user does not have permission to remove these aliases.



searchAliases
public List searchAliases(String criteria, int first, int last)(Code)



securityService
abstract protected SecurityService securityService()(Code)
the SecurityService collaborator.



serverConfigurationService
abstract protected ServerConfigurationService serverConfigurationService()(Code)
the ServerConfigurationService collaborator.



sessionManager
abstract protected SessionManager sessionManager()(Code)
the SessionManager collaborator.



setAlias
public void setAlias(String alias, String target) throws IdUsedException, IdInvalidException, PermissionException(Code)
Allocate an alias for a resource
Parameters:
  alias - The alias.
Parameters:
  target - The resource reference string alias target.
throws:
  IdUsedException - if the alias is already used.
throws:
  IdInvalidException - if the alias id is invalid.
throws:
  PermissionException - if the current user does not have permission to set this alias.



setCacheCleanerMinutes
public void setCacheCleanerMinutes(String time)(Code)
Set the # minutes between cache cleanings.
Parameters:
  time - The # minutes between cache cleanings. (as an integer string).



setCacheMinutes
public void setCacheMinutes(String time)(Code)
Set the # minutes to cache a get.
Parameters:
  time - The # minutes to cache a get (as an integer string).



siteService
abstract protected SiteService siteService()(Code)
the SiteService collaborator.



storageFields
public Object[] storageFields(Entity r)(Code)
Collect the fields that need to be stored outside the XML (for the resource). An array of field values to store in the record outside the XML (for the resource).



timeService
abstract protected TimeService timeService()(Code)
the TimeService collaborator.



unlock
protected void unlock(String lock, String resource) throws PermissionException(Code)
Check security permission.
Parameters:
  lock - The lock id string.
Parameters:
  resource - The resource reference string, or null if no resource is involved.
exception:
  PermissionException - Thrown if the user does not have access



unlockCheck
protected boolean unlockCheck(String lock, String resource)(Code)
Check security permission.
Parameters:
  lock - The lock id string.
Parameters:
  resource - The resource reference string, or null if no resource is involved. true if allowed, false if not



unlockTargetCheck
protected boolean unlockTargetCheck(String target)(Code)
Check security permission, target modify based.
Parameters:
  target - The target resource reference string. true if allowed, false if not



userDirectoryService
abstract protected UserDirectoryService userDirectoryService()(Code)
the UserDirectoryService collaborator.



willArchiveMerge
public boolean willArchiveMerge()(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.