Package com.adito.sample

Examples of com.adito.sample.Sample


        String name = (String) seq.getAttribute(SampleDefaultDetailsForm.ATTR_RESOURCE_NAME, null);
        String description = (String) seq.getAttribute(SampleDefaultDetailsForm.ATTR_RESOURCE_DESCRIPTION, null);
        boolean favorite = ((Boolean) seq.getAttribute(SampleDefaultDetailsForm.ATTR_FAVORITE, Boolean.FALSE)).booleanValue();
        int parentResourcePermission = ((Integer) seq.getAttribute(SampleDefaultDetailsForm.ATTR_PARENT_RESOURCE_PERMISSION,
                        new Integer(0))).intValue();
        Sample sample = null;
        try {
            try {
                sample = SamplePlugin.getDatabase().addSample(name, description, parentResourcePermission);
                // #ifdef XTRA
                CoreServlet.getServlet().fireCoreEvent(new ResourceChangeEvent(this,
View Full Code Here


     */
    public void initialise(List samples, SessionInfo session, String defaultSortColumnId) {
        super.initialize(session.getHttpSession(), defaultSortColumnId);
        try {
            for (Iterator i = samples.iterator(); i.hasNext();) {
                Sample sample = (Sample) i.next();
                List policies = CoreServlet.getServlet().getPolicyDatabase().getPoliciesAttachedToResource(sample);
                SampleItem si = new SampleItem(sample, policies);
                si.setFavoriteType(getFavoriteType(si.getResource().getResourceId()));
                getModel().addItem(si);
            }
View Full Code Here

TOP

Related Classes of com.adito.sample.Sample

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.