| org.theospi.portfolio.guidance.impl.GuidanceManagerImpl
GuidanceManagerImpl | public class GuidanceManagerImpl extends HibernateDaoSupport implements GuidanceManager(Code) | | Created by IntelliJ IDEA.
User: John Ellis
Date: Nov 11, 2005
Time: 1:00:57 PM
To change this template use File | Settings | File Templates.
|
Field Summary | |
final protected Log | logger |
Method Summary | |
protected void | addAttachment(Element attachments, GuidanceItemAttachment attachment) | protected void | addItem(Element items, GuidanceItem item) | protected void | addNode(Element parentNode, String name, String value) | public boolean | assureAccess(Guidance guidance) Pushes the files in the guidance into the security bypass advisor thus allowing the
files to be read. | protected boolean | checkAttachment(GuidanceItemAttachment attachment) This checks for the existance of a resource in a non-permission checking way. | protected Document | createGuidanceAsXml(Guidance guidance) | public Guidance | createNew(String description, String siteId, Id securityQualifier, String securityViewFunction, String securityEditFunction) | public Reference | decorateReference(Guidance guidance, String reference) | public void | deleteGuidance(Guidance guidance) | protected int | getAttachmentRefHash(GuidanceItemAttachment attachment) | public AuthorizationFacade | getAuthorizationFacade() | public ContentHostingService | getContentHostingService() | public EntityManager | getEntityManager() | public Guidance | getGuidance(Id guidanceId) | protected Guidance | getGuidance(Id guidanceId, boolean checkAuthz) | public Guidance | getGuidance(String id) | public Guidance | getGuidance(String id, boolean checkAuthz) | public List | getGuidanceForWarehousing() | public IdManager | getIdManager() | public SecurityService | getSecurityService() | protected AttachmentImportWrapper | importAttachment(GuidanceItem item, Element element) | protected void | importAttachmentRef(ContentCollection fileParent, ZipEntry currentEntry, String siteId, ZipInputStream zis, Map attachmentMap) | protected void | importGuidance(String siteId, InputStream is, Map guidanceMap) | public Map | importGuidanceList(ContentCollection parent, String siteId, InputStream in) This function is up to spec but incomplete. | protected GuidanceItem | importItem(Guidance guidance, Element element) | public List | listGuidances(String siteId) | public void | packageGuidanceForExport(List guidanceIds, OutputStream os) | protected void | postPocessAttachments(Collection guidances, Map attachmentMap) | protected void | postProcessGuidance(Guidance guidance, Map attachmentMap) | protected void | postProcessGuidanceItem(GuidanceItem item, Map attachmentMap) | protected void | processAttachment(ZipOutputStream zos, GuidanceItemAttachment attachment) | protected void | processGuidance(String guidanceId, ZipOutputStream zos, List exportedRefs) | protected void | processItem(ZipOutputStream zos, GuidanceItem item, List exportedRefs) | protected byte[] | readStreamToBytes(InputStream inStream) | public Guidance | saveGuidance(Guidance guidance) | public void | setAuthorizationFacade(AuthorizationFacade authorizationFacade) | public void | setContentHostingService(ContentHostingService contentHostingService) | public void | setEntityManager(EntityManager entityManager) | public void | setIdManager(IdManager idManager) | public void | setSecurityService(SecurityService securityService) | protected void | storeFileInZip(ZipOutputStream zos, InputStream in, String entryName) | protected String | substitueText(String oldUrl, GuidanceItemAttachment newAttachment, String text) |
logger | final protected Log logger(Code) | | |
assureAccess | public boolean assureAccess(Guidance guidance)(Code) | | Pushes the files in the guidance into the security bypass advisor thus allowing the
files to be read.
boolean whether or not the guidance has been changed |
checkAttachment | protected boolean checkAttachment(GuidanceItemAttachment attachment)(Code) | | This checks for the existance of a resource in a non-permission checking way.
If there isn't a uuid for a resource or there isn't a resolved id then it doesn't exist
Parameters: attachment - boolean true if a resource exists, false if it does not |
createGuidanceAsXml | protected Document createGuidanceAsXml(Guidance guidance)(Code) | | |
getGuidance | protected Guidance getGuidance(Id guidanceId, boolean checkAuthz)(Code) | | |
getGuidanceForWarehousing | public List getGuidanceForWarehousing()(Code) | | Pulls all Guidance
List of Guidance |
importGuidanceList | public Map importGuidanceList(ContentCollection parent, String siteId, InputStream in) throws IOException(Code) | | This function is up to spec but incomplete. The guidance security qualifier
needs to be set on these objects so they can be retrieved.
Parameters: parent - the parent resource folder where attachments go Parameters: siteId - the site which will recieve the imported "stuff" Parameters: in - The Input stream representing the output stream of the export Map contains a map with keys being of type String as old Ids and the values as being the Guidance object |
postPocessAttachments | protected void postPocessAttachments(Collection guidances, Map attachmentMap)(Code) | | |
postProcessGuidance | protected void postProcessGuidance(Guidance guidance, Map attachmentMap)(Code) | | |
postProcessGuidanceItem | protected void postProcessGuidanceItem(GuidanceItem item, Map attachmentMap)(Code) | | |
|
|